package org.xdq.责任链模式;

public class Test {

    static void test(Handler handler,Request req){
        handler.handle(req);
    }


    public static void main(String[] args) {
        Handler hanlder = new TeamLeader(new DepMgr(new Leader(null)));
        //hanlder.handle(new Request(5));
        test(hanlder,new Request(5));
    }
}
